<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="{:url('game.config/edit')}">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sponsor_name')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-sponsor_name" class="form-control" name="row[sponsor_name]" type="text" value="{$row.sponsor_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sponsor_logo')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-img" class="form-control" size="50" name="row[sponsor_logo]" type="text" value="{$row.sponsor_logo|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-img" class="btn btn-danger faupload" data-input-id="c-img" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-img"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-img" class="btn btn-primary fachoose" data-input-id="c-img" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-img"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-img"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sponsor_rate')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
            <input id="c-sponsor_rate" class="form-control" name="row[sponsor_rate]" type="number" value="{$row.sponsor_rate|htmlentities}">
                <div class="input-group-addon">%</div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Order_user_rate')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-order_user_rate" class="form-control" name="row[order_user_rate]" type="number" value="{$row.order_user_rate|htmlentities}">
                <div class="input-group-addon">%</div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payment_user_rate')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-payment_user_rate" class="form-control" name="row[payment_user_rate]" type="number" value="{$row.payment_user_rate|htmlentities}">
                <div class="input-group-addon">%</div>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Red_amount')}:</label>
        <div class="col-xs-12 col-sm-4">
            <div class="input-group">
                <input id="c-red_amount" class="form-control" name="row[red_amount]" type="number" value="{$row.red_amount|htmlentities}">
                <div class="input-group-addon">元</div>
            </div>

        </div>
<!--        <div class="col-xs-12 col-sm-4" style="width:4%;left: -68px">-->
<!--            <strong class="form-control" style="margin: auto">%</strong>-->
<!--        </div>-->
    </div>
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Order_user_rate')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-order_user_rate" class="form-control" name="row[order_user_rate]" type="number" value="{$row.order_user_rate|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
<!--    <div class="form-group">-->
<!--        <label class="control-label col-xs-12 col-sm-2">{:__('Payment_user_rate')}:</label>-->
<!--        <div class="col-xs-12 col-sm-4">-->
<!--            <input id="c-payment_user_rate" class="form-control" name="row[payment_user_rate]" type="number" value="{$row.payment_user_rate|htmlentities}">-->
<!--        </div>-->
<!--    </div>-->
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
